<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv= "X-UA-Compatible" content = "IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>博艺网-购物车</title>
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
    <script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
    <script type='text/javascript' src='http://m.sui.taobao.org/assets/js/zepto.js' charset='utf-8'></script>
    <script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/??sm.min.css,sm-extend.min.css">
    <script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/??sm.min.js,sm-extend.min.js' charset='utf-8'></script>
</head>
<body>

<#--<header class="bar bar-nav">-->
<#--<h1 class="title">卡片</h1>-->
<#--</header>-->
<div class="content">

<#if trolleyList?? && (trolleyList?size > 0)>
    <#list trolleyList as trolley>

        <div class="card" style="margin: 5px 0;">
            <div class="card-content">
                <div class="list-block media-list">
                    <ul>
                        <li class="item-content">
                            <div class="item-media">
                                <img src="http://img.boyitongcheng.com/${trolley.getProduct().getImgUrl()!''}" width="44">
                            </div>
                            <div class="item-inner">
                                <div class="item-title-row">
                                    <div class="item-title">${trolley.getUser().getCnName()}</div>
                                </div>
                                <div class="item-subtitle">${trolley.getUser().getCity()!''}</div>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="card-footer">
                <span>服务类型:${trolley.getProduct().getName()}</span>
                <span>服务价格:￥${trolley.getProduct().getCurrentPrice()?string("0.00")}元 X ${trolley.getAmount()?string}</span>
            </div>
            <div class="card-footer">
                <span>执行日期:${trolley.getScheduleDate()?date("yyyy-MM-dd")}</span>
                <span>就餐时间:${trolley.getDinnerType()}</span>
            </div>
            <div class="card-footer">
                <span>&nbsp;</span>
                <span><a href="/weixin/deleteTrolley?trolley_id=${trolley.getId()}&code=${code}" class="button">删除</a></span>
            </div>
        </div>

    </#list>
</#if>

<#if trolleyList?? && (trolleyList?size > 0)>
    <div class="card" style="margin: 5px 0;">

        <div class="card-footer">
            <span>&nbsp;</span>
            <span>
                <div class="content-block">
                    <p><a href="/weixin/submitOrder_auth" class="button">立即下单</a></p>
              </div>
            </span>
        </div>
    </div>
</#if>

</div>


</body>
</html>